<template>
    <div class="setting-container">
        <div class="setting-sidebar">
            <router-link to="/setting">概览</router-link>
            <router-link to="/setting/profile">个人资料</router-link>
            <router-link to="/setting/security">安全设置</router-link>
        </div>
        <div class="setting-content">
            <!-- 子路由组件 -->
            <router-view></router-view>
        </div>
    </div>
</template>

<script setup lang="ts">

</script>

<style lang="less" scoped>
@com_font_family: Comic Sans MS, Comic Sans, cursive, Arial, sans-serif;

// #setting {
//     position: absolute;
//     top: 50%;
//     left: 50%;
//     transform: translate(-50%,-50%);
//     font-size: 1.5rem;
//     font-style: italic;
//     text-align: center;
//     font-family: @com_font_family;
// }

.setting-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    width: 80%;
    max-width: 800px;
    margin: 30px auto;
    min-height: 500px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: @com_font_family;
}

.setting-sidebar {
    width: 200px;
    background-color: #f5f5f5;
    padding: 20px 0;
    border-right: 1px solid #e0e0e0;

    a {
        display: block;
        padding: 12px 20px;
        color: #333;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 16px;

        &:hover {
            background-color: #e8e8e8;
        }

        // &.router-link-active {
        //     background-color: #000;
        //     color: white;
        //     font-weight: bold;
        // }
    }
}

.setting-content {
    flex: 1;
    padding: 30px;
    background-color: #fff;
}
</style>